package com.orientation.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuandian
 * @since 2022-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_bulletin")
@ApiModel(value="Bulletin对象", description="消息通告")
public class Bulletin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通告id")
    @TableId(value = "SID", type = IdType.ASSIGN_UUID)
    private String sid;

    @ApiModelProperty(value = "学生ID")
    @TableField("STUDENT_ID")
    private String studentId;

    @ApiModelProperty(value = "优先级")
    @TableField("LEVEL")
    private Integer level;

    @ApiModelProperty(value = "通告标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "通告内容")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "通告目标类型 (1特定用户、多个用户、指定的用户群体、2全部)")
    @TableField("TARGET_TYPE")
    private Integer targetType;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("DELETED")
    private Integer deleted;

    @ApiModelProperty(value = "乐观锁注解字段")
    @TableField(value = "VERSION")
    @Version
    private Integer version;
    @ApiModelProperty(value = "是否查看")
    @TableField(value = "VIEW_STATE")
    private Integer viewState;


}
